package com.wenbing.miio.core;

import java.nio.ByteBuffer;

/**
 * 数据帧容器
 * @author wen bing
 * @projectName: miio
 * @package: com.wenbing.miio.core
 * @className: RowFrame
 * @date 2024/09/21 11:41
 **/
public class RowFrame {
    /**
     * 所在上下文
     */
    private NetworkLayerContext context;

    /**
     * 帧数据
     */
    private ByteBuffer byteBuffer;

    public RowFrame(NetworkLayerContext context, ByteBuffer byteBuffer) {
        this.context = context;
        this.byteBuffer = byteBuffer;
    }

    public void setByteBuffer(ByteBuffer byteBuffer) {
        this.byteBuffer = byteBuffer;
    }

    public ByteBuffer getByteBuffer() {
        return byteBuffer;
    }

    public NetworkLayerContext getContext() {
        return context;
    }
}
